Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(stacker): update tpowerdown and hold current delay for motor driver #493

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

ahiuchingau
Copy link
Contributor

Lowering the tpowerdown and ihold delay to minimize the time it needs to change motor current; this should reduce the wobble when we turn on the z-brake before disabling the motor.

@djgomez-opentrons
Copy link
Collaborator

Tested on bench setup.

TPOWERDOWN matches the behavior I get when I manually edit the registers. A period of 180ms from the last step pulse to when the current starts to drop with IHOLDDELAY.
This 180ms is:

  • 65ms standstill delay time
  • 115ms TPOWERDOWN delay

TPOWERDOWN seems to be 16ms (which is the period added by incrementing the register by one) longer than what I would expect from the datasheet.

I would say this is fine for now, not worth spending the time trying to fix the offset error (this might even be the normal behavior of the driver) - but people should know it's there and we should figure out exactly what is going on there at some point.

IHOLDDELAY is correct with 16ms per current step reductions.

image

Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@ahiuchingau ahiuchingau merged commit 7915846 into edge Dec 12, 2024
6 of 7 checks passed
@ahiuchingau ahiuchingau deleted the stacker-tmc2160_changes branch December 12, 2024 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants